<script type="text/javascript">
function _show_area(_this,_id) {
		isSearchHidden=$(_this).attr('rel');
		if(isSearchHidden == 1) {
				$("#left").find('#div_'+_id).slideDown("fast");
				$(_this).addClass('soff');
				$(_this).attr('rel',0);
		}else {
				$("#left").find('#div_'+_id).slideUp("fast");
				$(_this).removeClass('soff');
				$(_this).attr('rel',1);
		}
}	
</script>
  <php>
			if(empty($alp_cataroot))$alp_cataroot 	= service('Dict')->findByCode('goods');
			if(empty($alp_catagoods))$alp_catagoods 	= service('Dict')->getAllDictByCode('goods',' `id_path` ,`order` ');
	</php>

  <!--左侧导航-->
  <div id="left">
    <div class="listbox_top cat_1101"></div>
    <div class="listbox">
    	<php>	$alp_tmp_subid;
    				foreach($alp_catagoods as $vo1){
    					if($vo1['pid']==$alp_cataroot['id']){
    						$alp_tmp_subid = $vo1['id'];
    	</php>
					      <dl class="list" style="border-top:none;">
					        <dt><a 
					        	<php>if($sscode==''&&$scode==$vo1['code'])echo " class='red' ";</php>
					        	href="{:U('Product://Index/searchp',array('scode'=>$vo1['code']))}" title="{$vo1['desc']}"><b>{$vo1['desc']}</b></a>
					        	<php>	if($scode!=$vo1['code']){
						        				$tmp_soff=''; $tmp_rel='1';
					        				}else{
					        					$tmp_soff='soff'; $tmp_rel='0';
					        		}</php>
					        	<span class="son {$tmp_soff}" onclick="_show_area(this,'{$vo1['id']}')" rel='{$tmp_rel}'></span>
					        		
					          <div id="clear"></div>
					        </dt>
					        <div <php>if($tmp_rel==1) echo "style='display: none;'";</php> id="div_{$vo1['id']}">
						        <php>foreach($alp_catagoods as $vo2){
						        				if($alp_tmp_subid==$vo2['pid']){
						        </php>
							        				<dd <php>if($sscode==$vo2['code'])echo " id='list_on' ";</php>> 
							        					<a <php>if($sscode==$vo2['code'])echo " class='red' ";</php> href="{:U('Product://Index/searchp',array('scode'=>$vo1['code'],'sscode'=>$vo2['code']))}" title="{$vo2['desc']}">{$vo2['desc']}</a> 
							        				</dd>
						     		<php>		}
						     				 }
						     		</php>
						     	</div>
					      </dl>
      <php>		}
      		 }
      </php>
    </div>
    
    <!--推荐品牌-->
    <dl class="electbrand">
      <dt></dt>
      <dd><a href=""><img src="__PUBLIC__/img_product/1271185521445102788.jpg" width="179"></a></dd>
      <dd><a class="blue" href="">[查看本品牌商品]</a></dd>
    </dl>
    <div class="clear"></div>
    
    <!--浏览历史-->
    <dl class="electbrand history" id="history_div" style="">
      <dt></dt>
      <dd id="history_box">
          <a title="卡登仕 iPhone4玲珑硅胶保护套-白色" href="" target="_blank">
          <img alt="卡登仕 iPhone4玲珑硅胶保护套-白色" src="__PUBLIC__/img_product/1299698196753617716-55.jpg" height="50" width="50"></a>
		  <div id="clear"></div>
      </dd>
    </dl>
   </div>
